package com.wixc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wixc.entity.UserBean;
import com.wixc.mapper.UserMapper;
import com.wixc.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	UserMapper usermapper;

	/*
	 * 批量添加non-Javadoc)
	 * 
	 * @see com.wixc.service.JsonService#analysisJson(java.util.List)
	 */
	public void analysisJson(List<UserBean> userBean) {

	}

	/**
	 * 添加
	 * 
	 * @param userBean
	 */
	public void save(UserBean userBean) {

		this.usermapper.save(userBean);

	}

	/**
	 * 删除
	 * 
	 * @param jsonBean
	 */
	public void delete(int id) {

		this.usermapper.delete(id);

	}

	/**
	 * 查询一条 byid
	 */
	public UserBean getBeanById(int id) {
		return this.usermapper.getBeanById(id);
	}

	/**
	 * 修改
	 * 
	 * @param jsonBean
	 */
	public void update(UserBean json) {

		this.usermapper.update(json);
	}

	/**
	 * 查询
	 * 
	 * @param jsonBean
	 */
	public List<UserBean> select() {

		return this.usermapper.select();
	}
	/**
	 * 查询
	 * 
	 * @param jsonBean
	 */
	public List<UserBean> selectByLimit(Integer start,Integer end) {
		
		return this.usermapper.selectByLimit(start,end);
	}
}
